{% extends "light.twig" %}
{% set concept_label = '' %}{% for concept in search_results %}{% set concept_label = concept.label %}{% endfor %}
{% block headernav %}
<ul class="nav nav-tabs">
  <li><a href="{{ path_fix }}{{ vocab_id }}/{{ lang }}/index">{% trans "Alpha-nav" %}</a></li>
  {% if search_results|length == 1 %}
  <li class="active"><a id="hier-trigger" href="#">{% trans "Hier-nav" %}</a></li>
  {% endif %}
  {% if vocab.groupClassURI %}
  <li><a href="{{ path_fix }}{{ vocab_id }}/{{ lang }}/groups">{% trans "Group-nav" %}</a></li>
  {% else %}
  {% endif %}
</ul>
{% endblock %}
{% block title %}{% if search_results|length == 1 %}: {{ vocab_id|upper }}: {{ concept_label }}{% else %}: {{ vocab_id|upper }}{% endif %}
{% endblock %}
{% block content %}
  {% if lang_changed %}
  <div class="col-lg-10">
    <div class="alert alert-danger">
      <h4>{{ lang_changed }}</h4>
    </div>
  </div>
  {% endif %}
  {% if vocab.title != null or search_results != null %}
    <div id="vocab-content" class="container">
  	{% if search_results %}
       {% include 'concept-info.twig' %}
  	{% else %}
    <div class="col-lg-10">
      <div class="alert alert-danger">
  	    <h4>{% trans %}Error: term "{{ term }}" not found in vocabulary!{% endtrans %}</h4>
      </div>
    </div>
  	{% endif %}
    </div>
  {% else %}
    <div class="col-lg-10">
      <div class="alert alert-danger">
  	    <h4>{% trans %}Error: Requested vocabulary "{{ vocab_id }}" not found!{% endtrans %}</h4>
      </div>
    </div>
  {% endif %}
{% endblock %}
